<?php
$carry = array("夜夜","雷姆","G41","艾米莉亚","夕立");
echo  $carry[0];
$carry[1] = "艾米莉亚";
$carry[3] = "雷姆";
        
echo "<pre>";
print_r($carry);

echo count($carry);
echo "<hr/>";
echo "foreach::: <br/>";
foreach ($carry as $value) {
    echo $value ."<br/>";
}
echo "<hr/>";
echo "for:::<br/>";
$len = count($carry);
for($a = 0; $a < $len; $a++){
    echo $carry[$a]."<br/>";
}

$one = array(
    1 => "夜夜",
    2 => "蕾姆",
    3 => "G41",
);
foreach ($one as $Key => $value) {
    echo $Key ."=>". $value . "<br/>";
}

 $grades = array("一","二","三","四","五","六","七","八","九","十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十");
 ?>

<form>
     第<select name="grade">
    <?php foreach($grades as $value) : ?>
    <option value="<?php echo $value; ?>"><?php echo $value; ?></option>
    <?php endforeach ; ?>
    </select> 周
</form>